import Vue from 'vue'
import VueRouter from 'vue-router'
import homeRouters from './models/homeRouters'
import searchRouters from './models/searchRouters'
import profileRouter from './models/profileRouter'
import loginRouter from './models/loginRouter'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  ...homeRouters,
  ...searchRouters,
  ...profileRouter,
  ...loginRouter
]

const router = new VueRouter({
  routes
})

export default router
